package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {



    //分页查询
    List<Comment> findComments(String movementId, Integer commmentType, Integer page, Integer pagesize);

    //保存互动数据
    Integer save(Comment comment);

    //判断是否对动态点赞
    Boolean hasComment(String movementId, Long userId, int commentType);

    //删除互动数据
    Integer delete(Comment comment);
    //保存视频互动数据
    Integer savevideo(Comment comment);
    //删除视频互动数据
    Integer deleteVideo(Comment comment);

    Integer findById(String commentId,Long userId);

    Integer uodate(String commentId);

}
